/*******************************************
 * Copyright 2007 Aphrodite Framework for javaME .
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * Email : owner@aphroditeme.dev.java.net
 * Contributors:
 *     Kent Elton - initial API and implementation
 *******************************************/

package com.aphrodite.ui.schema;

/**
 * Schema for TwoRowList widget.
 * <p>
 * The TwoRowList widget is rendered based on information provided by this
 * class.
 * </p>
 * 
 * @author kentelt
 * 
 */
public final class ListField {
	public String firstRow;
	public int r1FontColor;
	public int r2FontColor = 0x808080;
	public javax.microedition.lcdui.Image rowImage;
	public String secondRow;

	/**
	 * Creates a ListField instance
	 * 
	 * @param firstRow
	 *            caption of the two row list
	 * @param secondRow
	 *            caption of the two row list
	 */
	public ListField(Object firstRow, Object secondRow) {
		this(firstRow, secondRow, null);
	}

	/**
	 * Creates a ListField instance
	 * 
	 * @param firstRow
	 *            caption of the two row list
	 * @param secondRow
	 *            caption of the two row list
	 * @param rowImage
	 *            if null no Image is displayed
	 */
	public ListField(Object firstRow, Object secondRow, javax.microedition.lcdui.Image rowImage) {
		this.secondRow = secondRow.toString();
		this.firstRow = firstRow.toString();
		this.rowImage = rowImage;
	}
}
